Kanzi 4.0.0-beta2
kanzi::qnx::DefaultQnxEGLGraphicsOutput Class Reference

Class representing a default QNX EGL graphics output. More...

#include <kanzi/core.ui/platform/graphics_output/qnx_egl/default_qnx_egl_graphics_output.hpp>

Inheritance diagram for kanzi::qnx::DefaultQnxEGLGraphicsOutput:
[legend]

Public Member Functions

bool bringToFront () noexcept override
 WindowedGraphicsOutput::bringToFront() implementation.
 
 DefaultQnxEGLGraphicsOutput (const DefaultQnxEGLGraphicsOutput &)=delete
 Copy constructor.
 
 DefaultQnxEGLGraphicsOutput (const DefaultQnxEGLGraphicsOutputProperties &properties)
 Constructor.
 
 DefaultQnxEGLGraphicsOutput (DefaultQnxEGLGraphicsOutput &&) noexcept=delete
 Move constructor.
 
bool flushContext () noexcept
 Flushes any pending QNX Screen requests to the compositor.
 
void gatherEvents (EventQueue &queue) override
 EventSource::gatherEvents() implementation.
 
KZ_NO_DISCARD optional< NativeEventHandlegetNativeEventHandle () const noexcept override
 EventSource::getNativeEventHandle() implementation.
 
optional< NativeWindowHandlegetNativeWindowHandle () const noexcept override
 WindowedGraphicsOutput::getNativeWindowHandle() implementation.
 
KZ_NO_DISCARD QnxContext::NativeHandleType getQnxScreenContext () const noexcept
 Gets underlying QNX Screen context handle.
 
KZ_NO_DISCARD QnxDisplay::NativeHandleType getQnxScreenDisplay () const noexcept
 Gets underlying QNX Screen display handle.
 
KZ_NO_DISCARD QnxWindow::NativeHandleType getQnxScreenWindow () const noexcept
 Gets underlying QNX Screen window handle.
 
Matrix4x4 getTargetTransformation () const noexcept override
 FramebufferGraphicsOutput::getTargetTransformation() implementation.
 
KZ_NO_DISCARD optional< string > getWindowGroupName () const
 Gets the window group name of the underlying QNX Screen window.
 
optional< unsigned intgetWindowHeight () const noexcept override
 WindowedGraphicsOutput::getWindowHeight() implementation.
 
optional< intgetWindowPositionX () const noexcept override
 WindowedGraphicsOutput::getWindowPositionX() implementation.
 
optional< intgetWindowPositionY () const noexcept override
 WindowedGraphicsOutput::getWindowPositionY() implementation.
 
optional< string > getWindowTitle () const noexcept override
 WindowedGraphicsOutput::getWindowTitle() implementation.
 
optional< unsigned intgetWindowWidth () const noexcept override
 WindowedGraphicsOutput::getWindowWidth() implementation.
 
bool hideWindow () noexcept override
 WindowedGraphicsOutput::hideWindow() implementation.
 
void logWindowPosition () const noexcept
 Prints the active window position to log.
 
void logWindowSize () const noexcept
 Prints the active window size to log.
 
bool makeFullscreen () noexcept override
 WindowedGraphicsOutput::makeFullscreen() implementation.
 
bool makeMaximized () noexcept override
 WindowedGraphicsOutput::makeMaximized() implementation.
 
bool makeMinimized () noexcept override
 WindowedGraphicsOutput::makeMinimized() implementation.
 
bool makeRegular () noexcept override
 WindowedGraphicsOutput::makeRegular() implementation.
 
bool makeWindowOpaque () noexcept
 Makes the active window fully opaque.
 
bool moveWindow (int positionX, int positionY) noexcept override
 WindowedGraphicsOutput::moveWindow() implementation.
 
DefaultQnxEGLGraphicsOutputoperator= (const DefaultQnxEGLGraphicsOutput &)=delete
 Copy assignment operator.
 
DefaultQnxEGLGraphicsOutputoperator= (DefaultQnxEGLGraphicsOutput &&) noexcept=delete
 Move assignment operator.
 
bool resize (unsigned int width, unsigned int height) noexcept override
 WindowedGraphicsOutput::resize() implementation.
 
bool resizeWindow (unsigned int width, unsigned int height) noexcept override
 WindowedGraphicsOutput::resizeWindow() implementation.
 
bool setWindowTitle (string_view title) noexcept override
 WindowedGraphicsOutput::setWindowTitle() implementation.
 
bool setWindowZOrder (int zorder) noexcept
 Sets the z ordering for the active window related to all other windows currently visible.
 
bool showWindow () noexcept override
 WindowedGraphicsOutput::showWindow() implementation.
 
 ~DefaultQnxEGLGraphicsOutput ()
 Destructor.
 
- Public Member Functions inherited from kanzi::GraphicsOutput
KZ_NO_DISCARD Vector2 getDpi () const noexcept
 Returns the resolution of the target coordinate system in dots per inch.
 
KZ_NO_DISCARD unsigned int getHeight () const noexcept
 Returns the height of layout area in the target coordinate system.
 
KZ_NO_DISCARD unsigned int getWidth () const noexcept
 Returns the width of layout area in the target coordinate system.
 
virtual ~GraphicsOutput ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::EventSource
virtual ~EventSource ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::WakeupSignalSource
WakeupSignalSourceoperator= (const WakeupSignalSource &)=default
 Copy assignment operator.
 
WakeupSignalSourceoperator= (WakeupSignalSource &&) noexcept=default
 Move assignment operator.
 
 WakeupSignalSource ()=default
 Constructor.
 
 WakeupSignalSource (const WakeupSignalSource &)=default
 Copy constructor.
 
 WakeupSignalSource (WakeupSignalSource &&) noexcept=default
 Move constructor.
 
virtual ~WakeupSignalSource ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::FramebufferGraphicsOutput
 FramebufferGraphicsOutput ()
 Constructor.
 
KZ_NO_DISCARD const FramebuffergetFramebuffer () const noexcept
 Returns the framebuffer for the Graphics Output.
 
KZ_NO_DISCARD FramebuffergetFramebuffer () noexcept
 Returns the framebuffer for the Graphics Output.
 
virtual ~FramebufferGraphicsOutput ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::WindowedGraphicsOutput
virtual ~WindowedGraphicsOutput ()=default
 Destructor.
 

Protected Member Functions

void setTargetTransformation (Matrix4x4 targetTransformation) noexcept
 Sets the target transformation.
 
void updateCachedValues (unsigned int width, unsigned int height) noexcept
 Updates all cached values from given layout size.
 
- Protected Member Functions inherited from kanzi::GraphicsOutput
void updateDpi (Vector2 dpi)
 Updates the target layout area resolution.
 
void updateSize (unsigned int width, unsigned int height)
 Updates the target layout area size.
 

Detailed Description

Class representing a default QNX EGL graphics output.

Constructor & Destructor Documentation

◆ DefaultQnxEGLGraphicsOutput() [1/3]

kanzi::qnx::DefaultQnxEGLGraphicsOutput::DefaultQnxEGLGraphicsOutput ( const DefaultQnxEGLGraphicsOutputProperties & properties)
explicit

Constructor.

Parameters
propertiesSpecifies properties to request for the graphics output.

◆ ~DefaultQnxEGLGraphicsOutput()

kanzi::qnx::DefaultQnxEGLGraphicsOutput::~DefaultQnxEGLGraphicsOutput ( )

Destructor.

◆ DefaultQnxEGLGraphicsOutput() [2/3]

kanzi::qnx::DefaultQnxEGLGraphicsOutput::DefaultQnxEGLGraphicsOutput ( const DefaultQnxEGLGraphicsOutput & )
delete

Copy constructor.

◆ DefaultQnxEGLGraphicsOutput() [3/3]

kanzi::qnx::DefaultQnxEGLGraphicsOutput::DefaultQnxEGLGraphicsOutput ( DefaultQnxEGLGraphicsOutput && )
deletenoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

DefaultQnxEGLGraphicsOutput & kanzi::qnx::DefaultQnxEGLGraphicsOutput::operator= ( const DefaultQnxEGLGraphicsOutput & )
delete

Copy assignment operator.

◆ operator=() [2/2]

DefaultQnxEGLGraphicsOutput & kanzi::qnx::DefaultQnxEGLGraphicsOutput::operator= ( DefaultQnxEGLGraphicsOutput && )
deletenoexcept

Move assignment operator.

◆ logWindowPosition()

void kanzi::qnx::DefaultQnxEGLGraphicsOutput::logWindowPosition ( ) const
noexcept

Prints the active window position to log.

◆ logWindowSize()

void kanzi::qnx::DefaultQnxEGLGraphicsOutput::logWindowSize ( ) const
noexcept

Prints the active window size to log.

◆ setWindowZOrder()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::setWindowZOrder ( int zorder)
noexcept

Sets the z ordering for the active window related to all other windows currently visible.

Parameters
zorderZ ordering.
Returns
True on success, false on failure.

◆ makeWindowOpaque()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::makeWindowOpaque ( )
noexcept

Makes the active window fully opaque.

Returns
True on success, false on failure.

◆ flushContext()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::flushContext ( )
noexcept

Flushes any pending QNX Screen requests to the compositor.

Returns
True on success, false on failure.

◆ getQnxScreenContext()

KZ_NO_DISCARD QnxContext::NativeHandleType kanzi::qnx::DefaultQnxEGLGraphicsOutput::getQnxScreenContext ( ) const
noexcept

Gets underlying QNX Screen context handle.

Returns
QNX Screen context handle.
Since
Kanzi 4.0.0.

◆ getQnxScreenWindow()

KZ_NO_DISCARD QnxWindow::NativeHandleType kanzi::qnx::DefaultQnxEGLGraphicsOutput::getQnxScreenWindow ( ) const
noexcept

Gets underlying QNX Screen window handle.

Returns
QNX Screen window handle.
Since
Kanzi 4.0.0.

◆ getQnxScreenDisplay()

KZ_NO_DISCARD QnxDisplay::NativeHandleType kanzi::qnx::DefaultQnxEGLGraphicsOutput::getQnxScreenDisplay ( ) const
noexcept

Gets underlying QNX Screen display handle.

Returns
QNX Screen display handle.
Since
Kanzi 4.0.0.

◆ getWindowGroupName()

KZ_NO_DISCARD optional< string > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getWindowGroupName ( ) const

Gets the window group name of the underlying QNX Screen window.

Returns
Name of the window group.
Return values
nulloptWindow group name query failed.
Since
Kanzi 4.0.0.

◆ gatherEvents()

void kanzi::qnx::DefaultQnxEGLGraphicsOutput::gatherEvents ( EventQueue & queue)
overridevirtual

EventSource::gatherEvents() implementation.

Implements kanzi::EventSource.

◆ getNativeEventHandle()

KZ_NO_DISCARD optional< NativeEventHandle > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getNativeEventHandle ( ) const
overridevirtualnoexcept

EventSource::getNativeEventHandle() implementation.

Implements kanzi::WakeupSignalSource.

◆ getTargetTransformation()

Matrix4x4 kanzi::qnx::DefaultQnxEGLGraphicsOutput::getTargetTransformation ( ) const
overridevirtualnoexcept

◆ resize()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::resize ( unsigned int width,
unsigned int height )
overridevirtualnoexcept

◆ setWindowTitle()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::setWindowTitle ( string_view title)
overridevirtualnoexcept

◆ getWindowTitle()

optional< string > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getWindowTitle ( ) const
overridevirtualnoexcept

◆ resizeWindow()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::resizeWindow ( unsigned int width,
unsigned int height )
overridevirtualnoexcept

◆ getWindowWidth()

optional< unsigned int > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getWindowWidth ( ) const
overridevirtualnoexcept

◆ getWindowHeight()

optional< unsigned int > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getWindowHeight ( ) const
overridevirtualnoexcept

◆ moveWindow()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::moveWindow ( int positionX,
int positionY )
overridevirtualnoexcept

◆ getWindowPositionX()

optional< int > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getWindowPositionX ( ) const
overridevirtualnoexcept

◆ getWindowPositionY()

optional< int > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getWindowPositionY ( ) const
overridevirtualnoexcept

◆ makeFullscreen()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::makeFullscreen ( )
overridevirtualnoexcept

◆ makeRegular()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::makeRegular ( )
overridevirtualnoexcept

◆ makeMaximized()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::makeMaximized ( )
overridevirtualnoexcept

◆ makeMinimized()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::makeMinimized ( )
overridevirtualnoexcept

◆ showWindow()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::showWindow ( )
overridevirtualnoexcept

◆ hideWindow()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::hideWindow ( )
overridevirtualnoexcept

◆ bringToFront()

bool kanzi::qnx::DefaultQnxEGLGraphicsOutput::bringToFront ( )
overridevirtualnoexcept

◆ getNativeWindowHandle()

optional< NativeWindowHandle > kanzi::qnx::DefaultQnxEGLGraphicsOutput::getNativeWindowHandle ( ) const
overridevirtualnoexcept

◆ setTargetTransformation()

void kanzi::qnx::DefaultQnxEGLGraphicsOutput::setTargetTransformation ( Matrix4x4 targetTransformation)
inlineprotectednoexcept

Sets the target transformation.

Parameters
targetTransformationThe target transformation matrix.

◆ updateCachedValues()

void kanzi::qnx::DefaultQnxEGLGraphicsOutput::updateCachedValues ( unsigned int width,
unsigned int height )
protectednoexcept

Updates all cached values from given layout size.

Parameters
widthLayout area width in pixels.
heightLayout area height in pixels.

The documentation for this class was generated from the following file: